from xml.dom.minidom import parse, Document, Element

doc = parse('c:\\inne\\gps\\lew.gpx')

for seg in doc.getElementsByTagName('trkseg'):
    for pt in seg.getElementsByTagName('trkpt'):
        print [float(pt.getAttribute('lat')), float(pt.getAttribute('lon'))]
